/**
 * @ClassName LC3151
 * @Author ykx
 * @Date 2024/7/13 8:32
 * @Version 1.0
 */
public class LC3151 {
    public static void main(String[] args) {

    }

    public boolean isArraySpecial(int[] nums) {
        for (int i = 0; i < nums.length - 1; i++) {
            if (nums[i] % 2 == nums[i + 1] % 2) {
                return false;
            }
        }
        return true;
    }

}
